package cn.micai.core.bean.user;

import java.io.Serializable;
import java.util.Date;

/**
 * 管理员
 *
 * @author zhaoxinguo on 2017/8/4.
 */
public class Admin implements Serializable {

    private Integer id;
    private String username;
    private String password;
    private Admin.Gender gender;
    private String email;
    private String realName;
    private Date registerTime;
    private String province;
    private String city;
    private String town;
    private String addr;
    private Integer isDel;

    public enum Gender {

        MAN{
            public String getName(){return "男";}
        },
        WOMAN{
            public String getName(){return "女";}
        },
        SECRECY{
            public String getName(){return "保密";}
        };

        public abstract String getName();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }

    public Admin.Gender getGender() {
        return gender;
    }
    public void setGender(Admin.Gender gender) {
        this.gender = gender;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public String getRealName() {
        return realName;
    }
    public void setRealName(String realName) {
        this.realName = realName;
    }
    public Date getRegisterTime() {
        return registerTime;
    }
    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }
    public String getProvince() {
        return province;
    }
    public void setProvince(String province) {
        this.province = province;
    }
    public String getCity() {
        return city;
    }
    public void setCity(String city) {
        this.city = city;
    }
    public String getTown() {
        return town;
    }
    public void setTown(String town) {
        this.town = town;
    }
    public String getAddr() {
        return addr;
    }
    public void setAddr(String addr) {
        this.addr = addr;
    }
    public Integer getIsDel() {
        return isDel;
    }
    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", gender=" + gender +
                ", email='" + email + '\'' +
                ", realName='" + realName + '\'' +
                ", registerTime=" + registerTime +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", town='" + town + '\'' +
                ", addr='" + addr + '\'' +
                ", isDel=" + isDel +
                '}';
    }
}
